package cn.sylinx.horm.core.datasource;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * 数据库链接提供者
 *
 * @author johnhan
 */
public interface ConnectionProvider {

    Connection getConnection() throws SQLException;

    void releaseConnection(Connection conn) throws SQLException;

    String getDataSourceName();

    void close();
}